package com.xmx.ordercenter.feign;


import com.xmx.common.utils.R;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/8/11 11:25
 */
@FeignClient(value="coupon-center")
public interface CouponFeignClient {

    @GetMapping("/couponcenter/coupondata/list")
    R listcoupon(@RequestParam Map<String, Object> params);


    @GetMapping("/couponcenter/coupondata/info/{id}")
    R infocoupon(@PathVariable("id") Integer id);
    /**
     * 用户优惠券
     * @param
     * @return
     */
    @GetMapping("/couponcenter/couponuser/getcount/{user_id}")
     R getcount(@PathVariable("user_id") Integer id);

    @GetMapping("/couponcenter/couponuser/getlist/{user_id}")
     R getlistbyuid(@PathVariable("user_id") Integer id);

    @GetMapping("/couponcenter/couponuser/info/{id}")
    R infoUsercoupon(@PathVariable("id") Integer id);


    @PutMapping("/couponcenter/couponuser/update")
     R updateCouponUser(@RequestBody Map couponUser);

}
